package com.bins.redis.pubsub;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

@Service
public class RedisConsumerService {
	
	@Autowired
	private RedisTemplate<String, Serializable> redisTemplate;
	
	public void receiveMessage(String messageBody) {
        System.out.println("consumeMessage默认方法，消息内容：" + messageBody);
        // redisTemplate.convertAndSend("tenmao.blog.channel", "hello world");
    }
	
	

}
